rename
{dplyr}
Renames columns in a data frame or tibble.
set.seed
{base}
Initialise a pseudorandom number generator.
summary
{base}
Obtain summary statistics or detailed regression output
with
{base}
evaluate expression in the context of a data frame
select
{dplyr}
Select columns from a tibble/data frame
geom_vline
{GGPLOT2}
Draws a vertical line
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
is.na
{base}
Check if a value is NA/elements of vector are NA
ylab
{GGPLOT2}
Label the y axis (ggplot)
min
{base}
Get minimum of a vector
names
{base}
Retrieve names of a list/vector
ggsave
{ggplot2}
Saves the last ggplot or a specified ggplot object to a file
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
modelsummary
{modelsummary}
Creates regression and data tables
attach
{base}
Attach Set of R Objects to Search Path
t.test
{stats}
Performs one and two sample t-tests on vectors of data.
c
{base}
Combine values/vectors into a vector
geom_hline
{GGPLOT2}
Add a horizontal line in GGPLOT2
slice_sample
{dplyr}
Randomly selects rows from a data frame or tibble.
round
{base}
Rounds numbers
colnames
{base}
Retrieve column names of a data frame
geom_point
{GGPLOT2}
Generates a scatter plot
nrow
{base}
Get number of rows of a data frame
mean
{base}
Get mean of a vector
class
{base}
Retrieve class of an R object
dim
{base}
Get dimensions of a data frame
ungroup
{dplyr}
Resolve grouping created with “group_by”
list
{base}
Create a list object
group_tt
{tinytable}
Grouping in tinytable
library
{base}
Load an R package
ggplot
{GGPLOT2}
Create a ggplot graph
theme
{GGPLOT2}
Set theme for GGPLOT2
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
prop.test
{stats}
Test of Equal or Given Proportions
element_text
{GGPLOT2}
Customise text in GGPLOT2
read_excel
{readxl}
Read an Excel file
ordered
{dplyr}
Create an ordered factor
confint
{stats}
Calculate confidence Intervals for Model Parameters
filter
{dplyr}
Filter out rows of a data frame according to logical vector
chisq.test
{stats}
Chi-Squared test (e.g. for cross-tabulations)
xlab
{GGPLOT2}
Label the x axis (ggplot)
element_blank
{GGPLOT2}
This theme element draws nothing, and assigns no space
labs
{GGPLOT2}
Customise labels in GGPLOT2
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
data.frame
{base}
Create a data.frame from vectors
setwd
{base}
Set Working Directory
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
cut
{base}
Convert Numeric to Factor
lm
{base}
Fit a linear model
median
{stats}
Get median of a vector
element_line
{GGPLOT2}
Customise line appearance
leveneTest
{car}
Computes Levene’s test for homogeneity of variance across groups.
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
mutate
{dplyr}
Modify/create a column in a data frame
The end!